<template>
  <div>
<!--  头部模块-->
     <v-homeheader></v-homeheader>
<!--   热门职位分类-->
     <v-index :propsuserinfo="userInfo"></v-index>
<!--      <v-middle></v-middle>-->
<!--  底部公共模块-->
      <v-foot></v-foot>
  </div>
</template>

<script>
import index from '@/views/components/defualt/index'
import middle from '@/views/components/middle/middle'
import foot from '@/views/components/foot/foot'
import homeheader from '@/views/components/common/home-header'
export default {
  name: 'defualt',
  components: {
    'v-homeheader': homeheader,
    'v-index': index,
    'v-middle': middle,
    'v-foot': foot
  },
  data () {
    return {
      userInfo: {},
      // 当前页面path
      routerPath: '',
      users: {},
      msg: 'msg'
      // options: [
      //   { value: '选项1', label: '黄金糕' },
      //   { value: '选项2', label: '双皮奶' },
      //   { value: '选项3', label: '蚵仔煎' },
      //   { value: '选项4', label: '龙须面' },
      //   { value: '选项5', label: '北京烤鸭'}
      // ]
    }
  },
  created () {
    // this.routerPath = this.$route.path
    // console.log('当前路由defualt： ',this.routerPath)
    // this.userinfoChange()
    this.userInfo = JSON.parse(localStorage.getItem('userInfo'))
  },
  methods: {
    // userinfoChange(e) {
    //   console.log('接收子组件值：', e)
    //   // this.userInfo = e
    // }
  }
}
</script>

<style scoped>

</style>
